<?php

namespace app\index\controller;

use app\common\controller\Frontend;
use think\Db;

class Page extends Frontend
{

    protected $noNeedLogin = '*';
    protected $noNeedRight = '*';

    public function _initialize()
    {
        parent::_initialize();
    }

    public function info($name)
    {
        $info = Db::name('page')->where(['en_name' => $name])->find();
        $this->assign('info', $info);
        $this->assign('title', '首页');
        return $this->view->fetch();
    }

}
